import request from '@/utils/request'

export const getCateAPI = () => {
  return request.get('/my/cate/list')
}

export const upCataAPI = obj => {
  return request.post('/my/cate/add', obj)
}

export const deleteCategoryAPI = id => {
  return request.delete('/my/cate/del', { params: { id } })
}

export const updataCategoryAPI = obj => {
  return request.put('/my/cate/info', obj)
}
